package com.supermap.data.modal;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.util.Date;

/**
 * 催报报表信息
 * TUser entity. @sun'f
 */
@Entity
@Table(name = "T_PRESS")
@JsonIgnoreProperties(value = {"hibernateLazyInitializer", "handler"})
public class TPress {

    /**
     * 主键
     */
    private String id;
    /**
     * 催报报表名称
     */
    private String press_name;
    /**
     * 催报报表代码
     */
    private String press_code;
    /**
     * 所属行业代码
     */
    private String industry_code;
    /**
     * 所属报告期
     */
    private int report;
    /**
     * 状态
     */
    private int status;
    /**
     * 开始时间
     */
    private Date start_time;
    /**
     * 结束时间
     */
    private Date end_time;


    public TPress() {
    }


    public TPress(String id, String press_name, String press_code, String industry_code, int report, int status, Date start_time, Date end_time) {
        this.id = id;
        this.press_name = press_name;
        this.press_code = press_code;
        this.industry_code = industry_code;
        this.report = report;
        this.status = status;
        this.start_time = start_time;
        this.end_time = end_time;
    }

    @Id
    @GeneratedValue(generator = "uuid")
    @GenericGenerator(name = "uuid", strategy = "uuid")
    @Column(name = "ID")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "PRESS_NAME")
    public String getPress_name() {
        return press_name;
    }

    public void setPress_name(String press_name) {
        this.press_name = press_name;
    }

    @Column(name = "PRESS_CODE")
    public String getPress_code() {
        return press_code;
    }

    public void setPress_code(String press_code) {
        this.press_code = press_code;
    }

    @Column(name = "INDUSTRY_CODE")
    public String getIndustry_code() {
        return industry_code;
    }

    public void setIndustry_code(String industry_code) {
        this.industry_code = industry_code;
    }

    @Column(name = "REPORT")
    public int getReport() {
        return report;
    }

    public void setReport(int report) {
        this.report = report;
    }

    @Column(name = "STATUS")
    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Column(name = "START_TIME")
    public Date getStart_time() {
        return start_time;
    }

    public void setStart_time(Date start_time) {
        this.start_time = start_time;
    }

    @Column(name = "END_TIME")
    public Date getEnd_time() {
        return end_time;
    }

    public void setEnd_time(Date end_time) {
        this.end_time = end_time;
    }
}
